
<h1 class="logo">
	<?= $this->Html->link('', '/');?>
</h1>
<div class="panel_login">
	<ul>
		<?php if ($this->UserAuth->isLogged()){?>
		<?php $user = $this->UserAuth->getUser();?>
		<li><?php echo $this->Html->link(__("Hello ".h($user['User']['first_name']).' '.h($user['User']['last_name']),true),"/myprofile") ?></li>
		<li>&nbsp|&nbsp</li>
		<li><?= $this->Html->link('Intranet','/intranets/index'); ?></li>
		<li>&nbsp|&nbsp</li>
		<li><?php echo $this->Html->link(__("Sign Out",true),"/logout") ?></li>
		<?php } else{?>
		<li><?php echo 'Hi Guest';?></li>
		<li>&nbsp|&nbsp</li>
		<li><?php echo $this->Html->link(__("Sign In",true),"/login") ?></li>
		<?php }?>
	</ul>
</div>